/**
 * DayRecDayRec.java
 */
package com.centling.bluecollar.recruit.entity;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.GenericGenerator;

import com.centling.bluecollar.customer.entity.EnterpriseCustomer;

/**
 * @author cary
 * @version <br>
 *          <p>
 *       ��Ƹ����
 *          </p>
 */
@Entity
@Table(name="dayrecruit")
public class DayRecruit{	
	private String id;
	private String date;//��Ƹ����
	private String writer;//����Ա
	private Date datatime;
	
	private String remarks;//��ע
	private String viewerNu;//��������
	private String entryNu;//¼������
	private String orgid;//��˾id
	private EnterpriseCustomer customer;//��Ƹ��ҵ
	/**
	 * @return the id
	 */
	@Id
	@GeneratedValue(generator="idGenerator")
	@Column(name="id")
	@GenericGenerator(name="idGenerator",strategy="uuid")
	public String getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * @return the date
	 */
	@Column(length=40)
	public String getDate() {
		return date;
	}
	/**
	 * @param date the date to set
	 */
	public void setDate(String date) {
		this.date = date;
	}
	/**
	 * @return the writer
	 */
	@Column(length=80)
	public String getWriter() {
		return writer;
	}
	/**
	 * @param writer the writer to set
	 */
	public void setWriter(String writer) {
		this.writer = writer;
	}
	/**
	 * @return the remarks
	 */
	@Column(length=500)
	public String getRemarks() {
		return remarks;
	}
	/**
	 * @param remarks the remarks to set
	 */
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	/**
	 * @return the viewerNu
	 */
	@Column(length=20)
	public String getViewerNu() {
		return viewerNu;
	}
	/**
	 * @param viewerNu the viewerNu to set
	 */
	public void setViewerNu(String viewerNu) {
		this.viewerNu = viewerNu;
	}
	/**
	 * @return the entryNu
	 */
	@Column(length=40)
	public String getEntryNu() {
		return entryNu;
	}
	/**
	 * @param entryNu the entryNu to set
	 */
	public void setEntryNu(String entryNu) {
		this.entryNu = entryNu;
	}
	/**
	 * @return the orgid
	 */
	//此字段将不会鞋写在数据库中呗持久化
	@Transient
	public String getOrgid() {
		return orgid;
		
	}
	/**
	 * @param orgid the orgid to set
	 */
	public void setOrgid(String orgid) {
		this.orgid = orgid;
	}
	/**
	 * @return the customer
	 */
	@ManyToOne(cascade={CascadeType.ALL})
	@JoinColumn(name="enterpriseCustomer_id")
	public EnterpriseCustomer getCustomer() {
		return customer;
	}
	/**
	 * @param customer the customer to set
	 */
	public void setCustomer(EnterpriseCustomer customer) {
		this.customer = customer;
	}
	/**
	 * @return the datatime
	 */
	
	public Date getDatatime() {
		return datatime;
	}
	/**
	 * @param datatime the datatime to set
	 */
	public void setDatatime(Date datatime) {
		this.datatime = datatime;
	}


}
